package org.apache.jsp.jsp.tiles.clientes;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import ucam.bean.Cliente;

public final class listadoCliente_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("<tr>\r\n");
      out.write("\t<td height=\"314\"></td>\r\n");
      out.write("\t<td valign=\"top\" align=\"center\">\r\n");
      out.write("\t\t<br/><br/>\r\n");
      out.write("\t\t<p class=\"titulo3\">listado de todos los clientes del sistema</p>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<table width=\"800\" align=\"center\" cellpadding=\"2\" cellspacing=\"1\" bordercolor=\"#000000\">\r\n");
      out.write("\t\t\t<tr bgcolor=\"#CCCCCC\">\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\" width=\"154\">DNI</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\" width=\"184\">Nombre</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\" width=\"191\">Direccion</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\" width=\"166\">Email</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\" width=\"161\">Contacto</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\" width=\"161\">Telefono</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t");

				java.util.Vector<Cliente> v =(java.util.Vector<Cliente>)request.getAttribute("vecClientes");
				for (int i = 0; i < v.size(); i++) {
					Cliente cliente = (Cliente)v.elementAt(i);
			
      out.write("\r\n");
      out.write("\t\t\t\t<tr bgcolor=\"#FFFFFF\">\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\">");
      out.print(cliente.getDni());
      out.write("</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\">");
      out.print(cliente.getNombre());
      out.write("</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\">");
      out.print(cliente.getDireccion());
      out.write("</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\">");
      out.print(cliente.getEmail());
      out.write("</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\">");
      out.print(cliente.getContacto());
      out.write("</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" class=\"parrafo_formulario\" height=\"20\">");
      out.print(cliente.getTelefono());
      out.write("</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t");

			}
			
      out.write("\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t\r\n");
      out.write("\t</td>\r\n");
      out.write("</tr>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
